package javabean;

//作为学生对象的业务小左对象
public class StudentOperator {
//1.接受到操作的学生对象
    private Student s;

    public StudentOperator(Student s){
        this.s = s;
    }

    //进行业务处理
    //2.打印成绩是否合格
    public void printPass(){
        if (s.getScore() >= 69){
            System.out.println(s.getName() + "这哥们合格了~~");
        } else {
            System.out.println(s.getName() + "挂科了~~~");
        }
    }
}
